
using System;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.AgentesArtes
 {
     /// <summary>
     /// A custom serializable dataset containing 
     /// </summary>

     [Serializable()]
     [System.ComponentModel.DesignerCategoryAttribute("code")]
      

	/// <summary>Class for handling datasets</summary>  
	public class MinoriaEtnicaData : DataSet
	{
    ///
    /// Constants for table and fields mapping
    ///
		public const string ART_MINORIA_ETNICA_TABLE = "ART_MINORIA_ETNICA";
    
    public const string MET_ID_FIELD = "MET_ID";
    public const string MET_MINORIA_ETNICA_FIELD = "MET_MINORIA_ETNICA";
    
    
    protected MinoriaEtnicaData(SerializationInfo info, StreamingContext context)
    {
    //
    }

    public MinoriaEtnicaData()
    {
       BuildDataTables();
    }
     
    /// <summary>
    /// Creates the following datatables: Localidades
    /// </summary>
    private void BuildDataTables()
		{
      DataTable table;
      DataColumnCollection columns;
      table = new DataTable(ART_MINORIA_ETNICA_TABLE);
      columns = table.Columns;
      
      columns.Add(MET_ID_FIELD, typeof(System.Decimal));

      columns.Add(MET_MINORIA_ETNICA_FIELD, typeof(System.String));
			columns[MET_MINORIA_ETNICA_FIELD].Caption = "Nombre";	

      this.Tables.Add(table);
    }
        
    /// <summary>
	/// Add a new row to the table
	/// </summary>
	/// <param name="row">Dataset row
	public void addMinoriaEtnica(DataRow row)
	{
		this.Tables[ART_MINORIA_ETNICA_TABLE].Rows.Add(row);
	}    
        
 }    
  
}  
